<template>
    <div>
        <el-input v-model="input" placeholder="请输入内容"></el-input>
        <el-button type="primary" plain @click = "submit" >提交</el-button>
    </div>
</template>

<script>
    export default{
        data () {
            return {
                input: ""
            }
        },
        methods: {
            submit(){
                this.$http.post(process.env.VUE_APP_BASE_API + "/common/fileNumber", {
                    path: this.input

                }).then(res =>{

                    console.log(res.body.msg)
                    this.download(res.body.msg)
                })
            }
        }
    }
</script>

<style>

</style>